package com.neusoft.service;

import com.neusoft.po.RedPacket;

import java.util.List;

public interface RedPacketService {
	public RedPacket getTheRedPacketByPacketId(int packetId);
	public int deleteAllRedPacketByPacketId(int packetId);
	
    public List<RedPacket> getAvailableRedPacketByUserId(String userId);

    //get redpacket by userId
    public List<RedPacket> getRedPacketByUserId(String userId);

    //get redpacket by userId and channelType
    public List<RedPacket> getRedPacketByUserIdAndChannelType(String userId, int channelType);

    public int insertRedPacket(RedPacket redPacket);
}

